package cn.bgs.mapper;

import cn.bgs.pojo.VehicleCar;
import cn.bgs.vo.VehicleAdd;
import cn.bgs.vo.UserVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 车辆表 Mapper 接口
 * </p>
 *
 * @author cf
 * @since 2022-06-07
 */
@Mapper
public interface VehicleCarMapper extends BaseMapper<VehicleCar> {

    List<VehicleCar> getMyCar(String userId);

    int addMyCar(VehicleCar vehicleCar);

    VehicleCar getOneCar(String carNumber);

    int updCar(VehicleCar vehicleCar);

    List<VehicleCar> getAllCar();
    void updateVehicleCar(VehicleAdd vehicleAdd);

    void updateVehicleNumber(VehicleAdd vehicleAdd);

    void addVehicleMiddle(VehicleAdd vehicleAdd);

    VehicleCar findMonthCard(VehicleAdd vehicleAdd);

    void addTemporaryCarPark(VehicleAdd vehicleAdd);
    List<VehicleCar> selectCarInfo(VehicleCar vehicleCar);

    int deleteInfo(Integer vehicleCarId);

    boolean addVcarInfo(VehicleCar vehicleCar);

    int updateInfo(VehicleCar vehicleCar);

    List<VehicleCar> infoPc(UserVo userVo);
}
